<?php

namespace App\Http\Controllers\Admin;

use App\Http\Controllers\Controller;
use App\Model\Btree;
use App\Model\Setting;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Log;
use Illuminate\Support\Facades\Redis;
use App\Service\PointsService;

class TestController extends Controller
{

    public function testSession1()
    {
        if(!isset($_SESSION)){
            session_start();
        }
        $_SESSION['test_session'] = [1, 2, 3];
    }

    public function testSession2()
    {
        if(!isset($_SESSION)){
            session_start();
        }
        dd($_SESSION['test_session']);
    }

    public function testRedis()
    {
        Redis::set('test_redis', '123');
        dd(Redis::get('test_redis'));
    }

    public function test()
    {


    }

}
